home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 1999-09-11 | 1.2 KB | 47 lines |
- "FILE"="Xteq Systems X-Setup Plugin 5.0"
- "TYPE"="1"
- "COUNT"="1"
- "UIPATH"="Program Options\Office 2000"
- "NAME"="URL Options"
- "VERSION"="1.03"
- "LANGUAGE"="VBScript"
- "TEXT 1"="Office URL"
- "DESCRIPTION 1"="This plug-in can be used to configure the URL that is opened when you click the "Help" - "Office on the Web" link."
- "DESCRIPTION 2"="To restore the original URL, clear the fields."
- "AUTHOR"="Xteq Systems"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
- "COMMENT 2"=" "
-
-
- sV1="HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\9.0\Common\Internet\OfficeOnTheWeb"
- sPCheck="HKCU\Software\Microsoft\Office\9.0\"
- Sub Plugin_Initialize
- if RegPathExists(sPCheck) then
- s=RegReadValue(sV1)
- Call SetUIElement(1,s)
- else
- Call Disable()
- end if
- End Sub
-
- Sub Plugin_CheckData(ElementIndex)
- End Sub
-
- Sub Plugin_Apply(ElementIndex,ElementSubIndex)
- s=GetUIElement(1)
- if len(s)>0 then
- Call RegWriteValue(sV1,s,1)
- else
- s=RegReadValue(sV1)
- if IsEmpty(s)=false then
- Call RegDeleteValue(sV1)
- end if
- end if
-
- Call Logoff
- End Sub
-
- Sub Plugin_Terminate
- End Sub
-